package team.kas.anime.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Comment implements Serializable {
    /**
     * 视频id
     */
    private Integer id;
    /**
     * 父评论id（默认0）
     */
    private String pid;
    /**
     * 评论人
     */
    private String uid;
    /**
     * 评论视频
     */
    private String vid;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 时间
     */
    private Date commentTime;

    //评论方向 ： 谁 回复 谁
    private String toname;
    private String owner;
    private String remark;

    /**
     * 每一个评论里面都可能有自己的子评论集合
     */
    private List<Comment> childComment = new ArrayList<>();

    private static final long serialVersionUID = 1L;

    public List<Comment> getChildComment() {
        return childComment;
    }

    public void setChildComment(List<Comment> childComment) {
        this.childComment = childComment;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getToname() {
        return toname;
    }

    public void setToname(String toname) {
        this.toname = toname;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid == null ? null : pid.trim();
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid == null ? null : uid.trim();
    }

    public String getVid() {
        return vid;
    }

    public void setVid(String vid) {
        this.vid = vid == null ? null : vid.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(Date commentTime) {
        this.commentTime = commentTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }
}